package com.slwish.common.config;


/**
 * 功能描述:
 * <p/>
 * 创 建 人：陈浩
 * 创建时间：2017-9-15
 * 版 本 号：V1.0
 */
public class PagerConfig {

    /* 滑动停止后可见的第一条 */
    private int startIndex = 0;
    /* 滑动停止后可见的最后一条 */
    private int endIndex = 0;
    /* 当前页数 */
    private int currentPage = 1;
    /* 数据总数 */
    private int totalCount = 0;
    /* 每页显示数量 */
    private int pageSize = 10;
    /* 是否第一次加载 */
    private boolean isFirst = true;

    /**
     *
     */
    public PagerConfig() {
        super();
    }

    /**
     * 构造方法
     *
     * @param startIndex
     * @param endIndex
     * @param currentPage
     * @param totalCount
     * @param pageSize
     * @param isFirst
     */
    public PagerConfig(int startIndex, int endIndex, int currentPage,
                       int totalCount, int pageSize, boolean isFirst) {
        super();
        this.startIndex = startIndex;
        this.endIndex = endIndex;
        this.currentPage = currentPage;
        this.totalCount = totalCount;
        this.pageSize = pageSize;
        this.isFirst = isFirst;
    }

    /**
     * @return the startIndex
     */
    public int getStartIndex() {
        return startIndex;
    }

    /**
     * @param startIndex the startIndex to set
     */
    public void setStartIndex(int startIndex) {
        this.startIndex = startIndex;
    }

    /**
     * @return the endIndex
     */
    public int getEndIndex() {
        return endIndex;
    }

    /**
     * @param endIndex the endIndex to set
     */
    public void setEndIndex(int endIndex) {
        this.endIndex = endIndex;
    }

    /**
     * @return the currentPage
     */
    public int getCurrentPage() {
        return currentPage;
    }

    /**
     * @param currentPage the currentPage to set
     */
    public void setCurrentPage(int currentPage) {
        this.currentPage = currentPage;
    }

    /**
     * @return the totalCount
     */
    public int getTotalCount() {
        return totalCount;
    }

    /**
     * @param totalCount the totalCount to set
     */
    public void setTotalCount(int totalCount) {
        this.totalCount = totalCount;
    }

    /**
     * @return the pageSize
     */
    public int getPageSize() {
        return pageSize;
    }

    /**
     * @param pageSize the pageSize to set
     */
    public void setPageSize(int pageSize) {
        this.pageSize = pageSize;
    }

    /**
     * @return the isFirst
     */
    public boolean isFirst() {
        return isFirst;
    }

    /**
     * @param isFirst the isFirst to set
     */
    public void setFirst(boolean isFirst) {
        this.isFirst = isFirst;
    }

}
